import request from '@/utils/request'

export function studentList(query) {
  return request({
    url: '/jbl-business/api/merchant/v1/student/select/page',
    method: 'get',
    params: query
  })
}
// 学生管理-----课程信息-----根据学生编号查询课程分页
export function getCourseSetMealVOPage(query) {
  return request({
    url: '/jbl-business/api/merchant/v1/student/getCourseSetMealVOPage',
    method: 'get',
    params: query
  })
}

// 根据id查询学生详细信息
export function getStudentById(query) {
  return request({
    url: '/jbl-business/api/merchant/v1/student/getById',
    method: 'get',
    params: query
  })
}

// 学生排课-----查询学生学习的课程套餐不分页
export function getCourseSetMealVO(query) {
  return request({
    url: '/jbl-business/api/merchant/v1/student/getCourseSetMealVO',
    method: 'get',
    params: query
  })
}

// 学员排课----冲突验证
export function verificationTime(query) {
  return request({
    url: '/jbl-business/api/merchant/v1/student/verificationTime',
    method: 'post',
    data: query
  })
}

// 学员管理------学员排课
export function studentLesson(query) {
  return request({
    url: '/jbl-business/api/merchant/v1/student/studentLesson',
    method: 'post',
    data: query
  })
}

// 学员排课------根据学员编号和机构编号查询排课课程
export function getScheduleCourseVO(query) {
  return request({
    url: '/jbl-business/api/merchant/v1/student/getScheduleCourseVO',
    method: 'get',
    params: query
  })
}

// 根据学生查询学员已排课的课表
export function getStudentLesson(query) {
  return request({
    url: '/jbl-business/api/merchant/v1/student/getStudentLesson',
    method: 'get',
    params: query
  })
}

// 学员管理———学生打卡
export function studentClock(query) {
  return request({
    url: '/jbl-business/api/merchant/v1/student/punch/the/clock',
    method: 'get',
    params: query
  })
}

// 学生管理---------新增学生
export function addStudent(query) {
  return request({
    url: '/jbl-business/api/merchant/v1/student/add',
    method: 'post',
    data: query
  })
}

// excel导入学生
export function studentImport(query) {
  return request({
    url: '/jbl-business/api/merchant/v1/student/import',
    method: 'post',
    data: query
  })
}
